const spawn = require('cross-spawn')
exports.getPackageManager = () => {
  try {
    spawn.sync('yarn', ['--version'])
    return 'yarn'
  } catch (error) {
    return 'npm'
  }
}
